package com.hotel.entity;

/**
 * 账户实体类
 */
public class Account {
	
	/**
	 * id编号
	 */
	private Integer id;
	/**
	 * 操作员(账户使用者)
	 */
	private String operator;
	/**
	 * 登录账户
	 */
	private String username;
	/**
	 * 登录密码
	 */
	private String password;
	/**
	 * 账户级别
	 */
	private Integer level;
	
	public Account() {
	}
	
	public Account(String operator, String username, String password,
			Integer level) {
		super();
		this.operator = operator;
		this.username = username;
		this.password = password;
		this.level = level;
	}

	public Account(Integer id, String operator, String username,
			String password, Integer level) {
		super();
		this.id = id;
		this.operator = operator;
		this.username = username;
		this.password = password;
		this.level = level;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Override
	public String toString() {
		return "账户信息 [编号 :　" + id + ", 操作员 : " + operator + ", 用户名 : "
				+ username + ", 密码 : " + password + ", 账户等级 : " + level
				+ "]";
	}
	
		
}
